package com.ykg;

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.web.bind.annotation.ControllerAdvice;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@ComponentScan("com.ykg.config")
@MapperScan("com.ykg.mapper")
@ComponentScan("com.ykg.controller")
@EnableSwagger2
@EnableSwaggerBootstrapUI
public class YkgProjectApplication  {

    public static void main(String[] args) {
        SpringApplication.run(YkgProjectApplication.class, args);
    }

}
